import request from '@/utils/request';

// 就诊患者列表
export async function reqPatientList(data: any, options?: any): Promise<any> {
  return request('/api/v1/medicalCase/patientList', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 基础问诊信息详情
export async function reqDetal(data: any, options?: any): Promise<any> {
  return request(`/api/v1/medicalCase/get/${data?.id}`, {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 基础问诊信息修改
export async function reqUpdate(data: any, options?: any): Promise<any> {
  return request(`/api/v1/medicalCase/update`, {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 脉诊信息修改
export async function reqPulseUpdate(data: any, options?: any): Promise<any> {
  return request(`/api/v1/pulse/update`, {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 脉诊信息详情
export async function reqPulseDetail(data: any, options?: any): Promise<any> {
  return request(`/api/v1/pulse/get/${data?.tyMedicalCaseId}`, {
    method: 'POST',
    data: {},
    ...(options || {}),
  });
}

// 脉诊列表
export async function reqPulseList(data: any, options?: any): Promise<any> {
  return request(`/api/v1/pulse/list`, {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 问诊问题集列表
export async function reqQuestionTermList(data: any, options?: any): Promise<any> {
  return request(`/api/v1/questionTerm/list`, {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

// 病种病名列表
export async function reqIllnessList(data: any, options?: any): Promise<any> {
  return request(`/api/v1/illness/list`, {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

export async function reqIllnessListByGrade(data: any, options?: any): Promise<any> {
  return request(`/api/v1/illness/listByGrade`, {
    method: 'POST',
    data,
    ...(options || {}),
  });
}






export async function reqActPrizeList(data: any, options?: any): Promise<any> {
  return request('/actPrize/list', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

export async function reqAddActPrize(data: any, options?: any): Promise<any> {
  return request('/actPrize/add', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

export async function reqKjActPrize(data: any, options?: any): Promise<any> {
  return request('/actPrize/updateBatch', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

export async function reqUpdateActPrize(data: any, options?: any): Promise<any> {
  return request('/actPrize/update', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

export async function reqDeleteActPrize(data: any, options?: any): Promise<any> {
  return request('/actPrize/delete', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}


